import axios from "axios";
const httpInstall=axios.create({
    baseURL:'http://pcapi-xiaotuxian-front-devtest.itheima.net',
    timeout:5000
})

httpInstall.interceptors.request.use(config=>{
    return config
},e=>Promise.reject(e))

 
httpInstall.interceptors.response.use(res => res.data, e => {
    return Promise.reject(e)
  })

export default httpInstall